package org.szy.admin.controller;

import org.noear.solon.annotation.Controller;
import org.noear.solon.annotation.Get;
import org.noear.solon.annotation.Mapping;
import org.noear.solon.core.handle.ModelAndView;
import org.szy.core.common.controller.BaseController;

/**
 * 其他页面控制层
 *
 * @author 孙志阳
 * @date 2023-02-17
 * @since 1.0.0
 **/
@Controller
@Mapping("/other")
public class OtherController extends BaseController {

    private final String PATH_PREFIX = "other/";

    @Get
    @Mapping("/note")
    public ModelAndView note() {
        return new ModelAndView(PATH_PREFIX + "note");
    }

    @Get
    @Mapping("/theme")
    public ModelAndView theme() {
        return new ModelAndView(PATH_PREFIX + "theme");
    }

    @Get
    @Mapping("/updatePassword")
    public ModelAndView updatePassword() {
        return new ModelAndView(PATH_PREFIX + "update-password");
    }
}
